package com.qidian.permission.service;

import com.qidian.permission.entity.User;
import com.qidian.permission.util.entity.PerResult;

/**
 * @Author 戴着假发的程序员
 * @Company 起点编程
 * @Time 2023/10/18 10:19
 * @Description
 */
public interface UserService {
    /**
     *
     * @param userId
     * @return
     */
    PerResult queryById(Long userId);

    /**
     * 保存用户，名字不能够重复
     * @param user
     * @return
     */
    PerResult save(User user);

    /**
     *
     * @param user
     * @param page
     * @param limit
     * @return
     */
    PerResult queryByPage(User user,int page,int limit);

    /**
     *
     * @param user
     * @return
     */
    PerResult update(User user);


    PerResult deleteByUserId(Long userId);

    PerResult deletesByUserId(Long [] userId);
}
